package com.jiu345.users.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiu345.api.pojo.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.List;

/**
 * 用记地址
 * @author Mr Lei QQ：235921049
 * @date 2024-07-29 10:52:48
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("region")
public class Region extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    /*id*/
    @TableId(value = "id")
    private Long id;
    /*地区编码*/
    private Long code;
    /*地区名称*/
    private String name;
    /*父级id*/
    private Long parentCode;
    /*层级*/
    private Integer level;

    /*其他*/
    @TableField(exist = false)
    private List<Region> children;





}
